package com.cinc.ebc.mm.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cinc.ebc.mm.entity.MmMaterialPickingRet;
import com.cinc.ebc.mm.entity.MmMaterialPickingRetDetail;
import com.cinc.ebc.mm.vo.MmMaterialPickingRetRequestPage;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 材料退回
 * @Author: jeecg-boot
 * @Date:   2023-04-16
 * @Version: V1.0
 */
public interface IMmMaterialPickingRetService extends IService<MmMaterialPickingRet> {

	/**
	 * 添加一对多
	 *
	 */
	public void saveMain(MmMaterialPickingRet mmMaterialPickingRet,List<MmMaterialPickingRetDetail> mmMaterialPickingRetDetailList) ;

	/**
	 * 修改一对多
	 *
	 */
	public void updateMain(MmMaterialPickingRet mmMaterialPickingRet,List<MmMaterialPickingRetDetail> mmMaterialPickingRetDetailList);

	/**
	 * 删除一对多
	 */
	public void delMain (String id);

	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	void handleRet(String id) throws Exception;

	IPage<MmMaterialPickingRet> pickingRetPage(Page<MmMaterialPickingRet> page, MmMaterialPickingRetRequestPage mmMaterialPickingRetRequest);
}
